const mysql = require("mysql");

//国内
const poolmomo = mysql.createPool({
    host: "118.178.33.10",
    port: 3306,
    user: "root",
    password: "admin-ldy",
    database: "Tarot",
    connectionLimit: 100,
    charset: "utf8mb4",
    timezone: '+08:00', // 或某个具体时区, 如 '+08:00'
    connectTimeout: 35000 // 15秒，调高一点仅用于等debug
});
// const poolmomo = mysql.createPool({
//     host: "127.0.0.1",
//     port: 3306,
//     user: "root",
//     password: "admin-ldy",
//     database: "momo",
//     connectionLimit: 100,
//     charset: "utf8mb4",
//     timezone: '+08:00', // 或某个具体时区, 如 '+08:00'
//     connectTimeout: 35000 // 15秒，调高一点仅用于等debug
// });
module.exports = poolmomo;
